Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute: Add scheduling.termination_time field to compute_instance resources #21717

Conversation

modular-magician
Copy link
Collaborator

This patch adds the scheduling.termination_time field to the following resources:

  • google_compute_instance
  • google_compute_instance_from_machine_image (beta)
  • google_compute_instance_from_template
  • google_compute_instance_template
  • google_compute_region_instance_template

It also adds a helper function hasTerminationTimeChanged, which allows to stop the instance while updating the termination_time.

compute: added `scheduling.termination_time` field to `google_compute_instance` resource
compute: added `scheduling.termination_time` field to `google_compute_instance_from_machine_image` resource
compute: added `scheduling.termination_time` field to `google_compute_instance_from_template` resource
compute: added `scheduling.termination_time` field to `google_compute_instance_template` resource
compute: added `scheduling.termination_time` field to `google_compute_region_instance_template` resource

Derived from GoogleCloudPlatform/magic-modules#12791

…resources (hashicorp#12791)

Signed-off-by: Norbert Kamiński <norbert.kaminski@infogain.com>

[upstream:fc3eeaab049d020371a96176262f2495ee9f7121]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician requested a review from a team as a code owner March 5, 2025 20:16
@modular-magician modular-magician merged commit d7f1541 into hashicorp:main Mar 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant